import request from '@/utils/request'

// 查询病人健康史列表
export function listHealth(query) {
  return request({
    url: '/health/health/list',
    method: 'get',
    params: query
  })
}

// 查询病人健康史详细
export function getHealth(id) {
  return request({
    url: '/health/health/' + id,
    method: 'get'
  })
}

// 新增病人健康史
export function addHealth(data) {
  return request({
    url: '/health/health',
    method: 'post',
    data: data
  })
}

// 修改病人健康史
export function updateHealth(data) {
  return request({
    url: '/health/health',
    method: 'put',
    data: data
  })
}

// 删除病人健康史
export function delHealth(id) {
  return request({
    url: '/health/health/' + id,
    method: 'delete'
  })
}
